﻿using System;
using System.Collections.ObjectModel;
using System.IO;
using System.Windows.Data;
using System.Windows.Forms;
using ComicReader.Model;
using ICSharpCode.SharpZipLib.Zip;

namespace ComicReader.Controllers
{
    internal class MainWindowController
    {
        private readonly MainWindow MainWindow;

        public MainWindowController(MainWindow mainWindow)
        {
            if (mainWindow == null)
            {
                throw new ArgumentNullException("mainWindow");
            }

            MainWindow = mainWindow;
            
        }

        public bool CanOpenArchive
        {
            get{ return true;}
        }

        public void OpenArchive()
        {
            MainWindow.ContentFrame.Navigate(new Views.ReaderPage(), UriKind.RelativeOrAbsolute);
   
        }

        public bool CanConvertDirectory
        {
            get { return true; }
        }

        public void ConvertDirectory()
        {
            MainWindow.ContentFrame.Navigate(new Views.ConverterPage(), UriKind.RelativeOrAbsolute);

        }
    }
}
